﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ObserverPattern
{
    class ObServer
    {
        private string name;
        public string Name
        {
            set 
            { 
                name = value; 
            }
            get
            {
                return name;
            }
        }
        public void CloseWindow(object sender,string status)
        {
            Console.WriteLine($"{status}收衫啦");
        }
    }
}
